<?php

    function estAuthentifie($id, $key) {
        
        require_once 'Config/connexion.php';
        
        $user = R::findOne('tg_users', ' id = :id and keyauth = :keyauth', array(':id'=> $id, ':keyauth'=>$key ));
                
        return $user != null;
    }
?>
